package server;

import java.util.*;
import java.io.*;

/**
 * Reads the nxtsetup.ini and stores the properties
 * 
 * I.e.:
 *	MotorA=1 <-- Plug A has a motor for movement
 * 	MotorB=2 <-- Plug B has a motor for steering
 *	MotorC=3 <-- Plug C has a motor for a sensor
 *	Bumper=1 <-- The touch sensor is plugged in at port 1 
 *	Sensor=2 <-- The ultrasonic sensor is plugged in at port 1 
 * 	SensorMotor=C <-- The ultrasonic sensor is attached to motor C
 */
class ServerReadIni {

	public Properties p;
	
	public ServerReadIni() {
		try {
			p = new Properties();
			  File f = new File("src/server/nxtsetup.ini");
			p.load(new FileInputStream(f));
		}
		catch (Exception e) {
			System.out.println(e);
		}
	}
}
